﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using model;
using dao;

namespace business
{
    public class PhanhoiBUS
    {
        PhanhoiDao phanhoiDao = new PhanhoiDao();

        public List<PhanhoiModel> getAllPhanhoi()
        {
            return phanhoiDao.getAllPhanhoi();
        }

        public bool themmoiPhanhoi(PhanhoiModel bv)
        {
            string a = phanhoiDao.themmoiPhanhoi(bv);
            if (a != "0")
                return true;
            else
                return false;
        }
    }
}
